package com.bamboocloud.im.service.impl;

import com.bamboocloud.im.dao.DeptDao;
import com.bamboocloud.im.entity.Dept;
import com.bamboocloud.im.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther xuwen
 * @Date 2021/12/9 10:50
 * @Version 1.0
 */
@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DeptDao deptDao;

    public boolean addDept(Dept dept) {
        return deptDao.addDept(dept);
    }


    public Dept selectDeptById(Long id) {
        return deptDao.selectDeptById(id);
    }


    public List<Dept> selectAllDept() {
        return deptDao.selectAllDept();
    }


    public boolean deleteDeptById(Long id) {
        return deptDao.deleteDeptById(id);
    }


    public Dept UpdateDept(Dept dept) {
        return deptDao.UpdateDept(dept);
    }
}
